import Vue from 'vue'
import Router from 'vue-router'
import View from '@/view/index'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      name: 'scan',
      meta: {
        title: "星诊所扫码"
      },
      component: View.scan.scanStart
    }, {
      path: '/drugs',
      name: 'drugs',
      meta: {
        title: "星诊所药品"
      },
      component: View.scan.drugs
    }
  ]
})
